﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSet_Tram" targetNamespace="http://tempuri.org/DataSet_Tram.xsd" xmlns:mstns="http://tempuri.org/DataSet_Tram.xsd" xmlns="http://tempuri.org/DataSet_Tram.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="VIBAConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="VIBAConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.VIBAConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="VIBA TRAMTableAdapter" GeneratorDataComponentClassName="VIBA_TRAMTableAdapter" Name="VIBA TRAM" UserDataComponentName="VIBA TRAMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="VIBAConnectionString (Web.config)" DbObjectName="VIBA_New.dbo.[VIBA TRAM]" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[VIBA TRAM] WHERE (([Tram_Id] = @Original_Tram_Id))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Tram_Id" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Tram_Id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[VIBA TRAM] ([Tram_Id], [Tram_Ten], [Tram_DiaChi], [NguoiPhuTrach], [GhiChu], [Status]) VALUES (@Tram_Id, @Tram_Ten, @Tram_DiaChi, @NguoiPhuTrach, @GhiChu, @Status)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Tram_Id" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Tram_Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Tram_Ten" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Tram_Ten" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Tram_DiaChi" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Tram_DiaChi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NguoiPhuTrach" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NguoiPhuTrach" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@GhiChu" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GhiChu" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Status" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Status" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Tram_Id, Tram_Ten, Tram_DiaChi, NguoiPhuTrach, GhiChu, Status FROM dbo.[VIBA TRAM]</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[VIBA TRAM] SET [Tram_Id] = @Tram_Id, [Tram_Ten] = @Tram_Ten, [Tram_DiaChi] = @Tram_DiaChi, [NguoiPhuTrach] = @NguoiPhuTrach, [GhiChu] = @GhiChu, [Status] = @Status WHERE (([Tram_Id] = @Original_Tram_Id))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Tram_Id" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Tram_Id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Tram_Ten" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Tram_Ten" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Tram_DiaChi" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Tram_DiaChi" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@NguoiPhuTrach" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="NguoiPhuTrach" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@GhiChu" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="GhiChu" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Status" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Status" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_Tram_Id" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Tram_Id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Tram_Id" DataSetColumn="Tram_Id" />
              <Mapping SourceColumn="Tram_Ten" DataSetColumn="Tram_Ten" />
              <Mapping SourceColumn="Tram_DiaChi" DataSetColumn="Tram_DiaChi" />
              <Mapping SourceColumn="NguoiPhuTrach" DataSetColumn="NguoiPhuTrach" />
              <Mapping SourceColumn="GhiChu" DataSetColumn="GhiChu" />
              <Mapping SourceColumn="Status" DataSetColumn="Status" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSet_Tram" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="DataSet_Tram" msprop:Generator_UserDSName="DataSet_Tram">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="VIBA_x0020_TRAM" msprop:Generator_TableClassName="VIBA_TRAMDataTable" msprop:Generator_TableVarName="tableVIBA_TRAM" msprop:Generator_TablePropName="VIBA_TRAM" msprop:Generator_RowDeletingName="VIBA_TRAMRowDeleting" msprop:Generator_UserTableName="VIBA TRAM" msprop:Generator_RowChangingName="VIBA_TRAMRowChanging" msprop:Generator_RowEvHandlerName="VIBA_TRAMRowChangeEventHandler" msprop:Generator_RowDeletedName="VIBA_TRAMRowDeleted" msprop:Generator_RowEvArgName="VIBA_TRAMRowChangeEvent" msprop:Generator_RowChangedName="VIBA_TRAMRowChanged" msprop:Generator_RowClassName="VIBA_TRAMRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Tram_Id" msprop:Generator_ColumnVarNameInTable="columnTram_Id" msprop:Generator_ColumnPropNameInRow="Tram_Id" msprop:Generator_ColumnPropNameInTable="Tram_IdColumn" msprop:Generator_UserColumnName="Tram_Id">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Tram_Ten" msprop:Generator_ColumnVarNameInTable="columnTram_Ten" msprop:Generator_ColumnPropNameInRow="Tram_Ten" msprop:Generator_ColumnPropNameInTable="Tram_TenColumn" msprop:Generator_UserColumnName="Tram_Ten" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Tram_DiaChi" msprop:Generator_ColumnVarNameInTable="columnTram_DiaChi" msprop:Generator_ColumnPropNameInRow="Tram_DiaChi" msprop:Generator_ColumnPropNameInTable="Tram_DiaChiColumn" msprop:Generator_UserColumnName="Tram_DiaChi" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="4000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="NguoiPhuTrach" msprop:Generator_ColumnVarNameInTable="columnNguoiPhuTrach" msprop:Generator_ColumnPropNameInRow="NguoiPhuTrach" msprop:Generator_ColumnPropNameInTable="NguoiPhuTrachColumn" msprop:Generator_UserColumnName="NguoiPhuTrach" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="4000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="GhiChu" msprop:Generator_ColumnVarNameInTable="columnGhiChu" msprop:Generator_ColumnPropNameInRow="GhiChu" msprop:Generator_ColumnPropNameInTable="GhiChuColumn" msprop:Generator_UserColumnName="GhiChu" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="4000" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Status" msprop:Generator_ColumnVarNameInTable="columnStatus" msprop:Generator_ColumnPropNameInRow="Status" msprop:Generator_ColumnPropNameInTable="StatusColumn" msprop:Generator_UserColumnName="Status" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:VIBA_x0020_TRAM" />
      <xs:field xpath="mstns:Tram_Id" />
    </xs:unique>
  </xs:element>
</xs:schema>